import request from '@/utils/request'

// 查询理单列表
export function listPurchaseTallySheet(query) {
  return request({
    url: '/purchase/PurchaseTallySheet/list',
    method: 'get',
    params: query
  })
}

// 查询理单详细
export function getPurchaseTallySheet(id) {
  return request({
    url: '/purchase/PurchaseTallySheet/' + id,
    method: 'get'
  })
}

// 新增理单
export function addPurchaseTallySheet(data) {
  return request({
    url: '/purchase/PurchaseTallySheet',
    method: 'post',
    data: data
  })
}

// 修改理单
export function updatePurchaseTallySheet(data) {
  return request({
    url: '/purchase/PurchaseTallySheet',
    method: 'put',
    data: data
  })
}

// 删除理单
export function delPurchaseTallySheet(id) {
  return request({
    url: '/purchase/PurchaseTallySheet/' + id,
    method: 'delete'
  })
}
